/**
 * @Author Yenchingcheng
 * @Date 2023/5/28 21:30
 * @Description
 **/
// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {

        FruitFactory factory = new FruitFactory();

        Fruit fruit1 = FruitFactory.getFruit("apple");
        fruit1.eat();

        Fruit fruit2 = FruitFactory.getFruit("pear");
        fruit2.eat();

        Fruit fruit3 = FruitFactory.getFruit("orange");
        fruit3.eat();

    }
}